package insight.google.game.era.bo.policy.gamecard;

import java.util.List;
import java.util.Map;

import insight.google.game.era.bo.GameRoom;
import insight.google.game.era.bo.GameUser;
import insight.google.game.era.bo.card.GameCard;
import insight.google.game.era.bo.policy.AbstractPolicy;
import insight.google.game.era.client.proxy.PlayerClientProxy;
import insight.google.game.era.data.Card.SUITE;
import insight.google.game.era.mgr.GameLogManager;

public class YinYangShieldPolicy extends AbstractPolicy {

	private PlayerClientProxy playerClientProxy;
	@Override
	public boolean execute(GameUser original, GameUser[] targets, Map params) {
		// TODO Auto-generated method stub
    	GameRoom currentRoom = (GameRoom)original.getCurrentRoom();
    	//GameLogManager gameLogManager = currentRoom.getGameLogManager();
        boolean rtnValue = false;
        
        //get next card and check card color, suite is heart or not.
        List<GameCard> gameCards = currentRoom.getCardsByCardCount(1);
        GameCard nextCard = gameCards.get(0);
        if(SUITE.SPADE.toString().equals(nextCard.getSuite())){
        	rtnValue = true;
        }
        
        //show this card to all user. 

        return false;
	}

}
